package beautiful.butterfly.server.httpserver.mvc.http;

import java.util.Map;


public interface Session {


    String id();


    void id(String id);


    String ip();


    void ip(String ip);


    <T> T getAttribute(String name);

    void setAttribute(String name, Object value);

    Map<String, Object> getAttributeMap();


    void removeAttribute(String name);


    long created();

    void created(long created);


    long expired();

    void expired(long expired);
}